include ./ZINO/filter/dsp/dsp.mk


includes = $(addprefix -I", $(addsuffix ", $(dsp_inc)))
src = $(dsp_src) \
	./ZINO/filter/dsp_test/draw_ware.c \
	./ZINO/filter/dsp_test/dsp_cal.c

objs = $(patsubst ./%,./build/%,$(patsubst %.c, %.o, $(src)))

./build/%.o: %.c
	@echo "Compiling $<..."
	@mkdir -p $(dir $@)
	@gcc -c $< -o $@ $(includes)
dsptest.exe: $(objs)
	@echo "Linking $@..."
	@gcc $(objs) -o dsptest.exe $(includes) -lgdi32
